package com.xhwl.centiotdata.integrator.parkingguidance;

import lombok.Data;

import java.util.Optional;

/**
 * Falcon.cao @Copyright (C), 2022, 兴海物联
 * Date: 2022/10/5 10:02
 * Description: 车场引导请求参数实体
 */
@Data
public class ParkingGuidanceRequestsDTO {

    private Integer projectId;

    /**
     * 区域标识
     */
    private Integer areaId;

    /**
     * 楼层标识
     */
    private Integer floorId;

    /**
     * 车位编号
     */
    private String parkNo;

    public Integer getAreaId() {
        return Optional.ofNullable(areaId).orElse(-1);
    }

    public Integer getFloorId() {
        return Optional.ofNullable(floorId).orElse(0);
    }
}
